<?php
/**
 * Course Class Model
 *
 * Copyright 2012
 * @date 21-April-2012
 * @author
 * @version 0.0.1
 **/
class Interest extends AppModel {
/**
 * Name
 *
 * @var string
 */
    public $name = 'Interest';
    public function get_list(){
        $country_list = $this->find('list',array('fields'=>array('name')));
        return $country_list;
    }
    public static function get_name($id){
        $country = ClassRegistry::init('Interest');
        $country->id = $id;
        return $country->field('name');
    }
}